Home
last modified time | relevance | path

Searched hist:"802 ddc37" (Results 1 – 1 of 1) sorted by relevance

/qemu/
H A Dqemu-nbd.c802ddc37 Fri Nov 04 14:51:24 GMT 2011 Paolo Bonzini <pbonzini@redhat.com> qemu-nbd: open the block device after starting the client thread

This is cleaner, because we do not need to close the block device when
there is an error opening /dev/nbdX. It was done this way only to
print errors before daemonizing.

At the same time, use atexit to ensure that the block device is closed
whenever we exit.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>